﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApi.Models
{
    /// <summary>
    /// 用户表 add by cfl  2022-04-14
    /// </summary>
    [SugarTable("UserModel")]
    public class UserModel
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        [SugarColumn(ColumnName = "UserID", IsPrimaryKey = true)]
        public string userID { get; set; }
        /// <summary>
        /// 用户账号    
        /// </summary>		
        [SugarColumn(ColumnName = "UserName")]
        public string userName { get; set; }
        /// <summary>
        /// 用户密码    
        /// </summary>		
        [SugarColumn(ColumnName = "PassWord")]
        public string userPwd { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        [SugarColumn(ColumnName = "Avatar")]
        public string avatar { get; set; }
        /// <summary>
        /// 用户名称    
        /// </summary>		
        [SugarColumn(ColumnName = "NickName")]
        public string nickName { get; set; }

        /// <summary>
        /// 用户电话
        /// </summary>
        [SugarColumn(ColumnName = "Phonenumber")]
        public string phonenumber { get; set; }
        /// <summary>
        /// 用户性别    
        /// </summary>		
        [SugarColumn(ColumnName = "Sex")]
        public string sex { get; set; } = "0";
        /// <summary>
        /// 用户邮箱    
        /// </summary>		
        [SugarColumn(ColumnName = "Email")]
        public string email { get; set; }
        /// <summary>
        /// 用户身份证
        /// </summary>		
        [SugarColumn(ColumnName = "IdCard")]
        public string idCard { get; set; }

        /// <summary>
        /// 注册时间    
        /// </summary>		
        [SugarColumn(ColumnName = "TRegister")]
        public DateTime? tRegister { get; set; }

    }
}
